package com.xinjie.decorator;

/**
 * @Description:
 * @author: xinjie
 * @date: 2020/8/7  11:08
 */
public class Fruit {
	private String name;

	public Fruit() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Fruit(String name) {
		this.name = name;
	}

	// 不一定 都要 wash
	void wash() {
		System.out.println(getName()+"wash... ");
	}

	void eat() {

		wash();
		System.out.println("Eat Fruit");
	}


}
